.ag-row-number-cell {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-align: right;
    user-select: none;
    background-color: var(--ag-header-background-color);
    color: var(--ag-header-text-color);
    font-size: var(--ag-header-font-size);
    font-family: var(--ag-header-font-family);
    font-weight: var(--ag-header-font-weight);
    border: none;
}

.ag-row-numbers-resizer {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 4px;
    width: 100%;
    cursor: ns-resize;
}

/* stylelint-disable-next-line selector-max-specificity */
.ag-floating-bottom .ag-row-numbers-resizer {
    bottom: unset;
    top: -2px;
}

:where(.ag-row-number-header.ag-row-number-selection-enabled) {
    cursor: cell;
}

.ag-row-number-range-highlight {
    background-color: var(--ag-range-header-highlight-color);
}

.ag-row-number-range-selected {
    background-color: var(--ag-row-numbers-selected-color);
}

:where(.ag-ltr) {
    .ag-row-number-header,
    :where(.ag-cell.ag-row-number-cell):not(.ag-cell-last-left-pinned) {
        /* rtl:ignore */
        border-right: var(--ag-pinned-column-border);
    }

    :where(.ag-cell.ag-row-number-cell.ag-row-number-selection-enabled) {
        cursor: url(''),
            auto;
    }
}

:where(.ag-rtl) {
    .ag-row-number-header,
    :where(.ag-cell.ag-row-number-cell):not(.ag-cell-first-right-pinned) {
        /* rtl:ignore */
        border-left: var(--ag-pinned-column-border);
    }

    :where(.ag-cell.ag-row-number-cell.ag-row-number-selection-enabled) {
        cursor: url(''),
            auto;
    }
}
